package tests;
import db.*;
import entities.Request;
import java.util.*;

public class LocationManagerTest {

	 public static void addLocationTest(){
		boolean b= DBLocationManager.addLocation("London");
		System.out.println("Location added: " + b);
		int id=DBLocationManager.getLocationID("London");
		System.out.println("Location Id is " + id);
		 
	 }
	 
	 public static void pendingTest(){
		 ArrayList<Request> req=DbRequestManager.getAllRequests(1);
		 for(Request r:req){
			 System.out.println(r.getTitle());
		 }
	 }
	 public static void main(String arg[]){
		 pendingTest();
	 }
}
